﻿using System;
using System.ComponentModel;

namespace HalconDotNet
{
	// Token: 0x02000087 RID: 135
	[EditorBrowsable(EditorBrowsableState.Never)]
	public class HDevThreadContext : IDisposable
	{
		// Token: 0x06001DE0 RID: 7648 RVA: 0x000B4FE8 File Offset: 0x000B31E8
		public HDevThreadContext()
		{
			HDevThread.HCkHLib(HalconAPI.HXCreateHThreadContext(out this.mContextHandle));
		}

		// Token: 0x1700006D RID: 109
		// (get) Token: 0x06001DE1 RID: 7649 RVA: 0x000B5000 File Offset: 0x000B3200
		public IntPtr Handle
		{
			get
			{
				return this.mContextHandle;
			}
		}

		// Token: 0x06001DE2 RID: 7650 RVA: 0x000B5008 File Offset: 0x000B3208
		public void Dispose()
		{
			if (this.mContextHandle != IntPtr.Zero)
			{
				HDevThread.HCkHLib(HalconAPI.HXClearHThreadContext(this.mContextHandle));
				this.mContextHandle = IntPtr.Zero;
			}
		}

		// Token: 0x04001152 RID: 4434
		private IntPtr mContextHandle;
	}
}
